package com.sunsheng.modules.lists;

import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.List;

public class ListsTest {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        for (int i = 1; i <= 100; i++) {
            list.add(i + "");
        }
        List<String> lists = Lists.newArrayList(list);
        List<List<String>> listList = Lists.partition(lists, 10);
//        listList.forEach(System.out::println);
        for (int i = 0; i < listList.size(); i++) {
            System.out.println("===>" + listList.get(i));
        }
    }
}
